package com.property.manage.dao.rent;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.property.manage.model.rent.HouseArrearsEntity;
import com.property.manage.model.rent.HouseArrearsVo;
import com.property.manage.model.rent.RentPaymentEntity;
import com.property.manage.model.rent.RentPaymentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/7/15
 */
@Repository
public interface HouseArrearsMapper extends BaseMapper<HouseArrearsEntity> {

    IPage<HouseArrearsVo> getHouseRentPage(@Param("page") IPage<HouseArrearsVo> page, @Param("villageId") Integer villageId, @Param("building")Integer building, @Param("unit") Integer unit, @Param("roomNumber")String roomNumber, @Param("startTime")String startTime, @Param("endTime")String endTime);
    List<HouseArrearsEntity> getHouseRent(@Param("villageId") Integer villageId, @Param("building")Integer building, @Param("unit") Integer unit, @Param("roomNumber")String roomNumber, @Param("startTime")String startTime, @Param("endTime")String endTime);
    HouseArrearsVo getCount(@Param("villageId") Integer villageId, @Param("startTime")String startTime, @Param("endTime")String endTime);
   void batchInsert(@Param("list")List<HouseArrearsEntity> list);
   void batchUpdate(@Param("list")List<HouseArrearsEntity> list);
    HouseArrearsVo getByBuildingId(@Param("buildingId")Integer buildingId);
}
